<?php
namespace App\Service\OrderService\OrderRouteService;

use App\Service\Code\Normal;
use App\Service\OrderService\BaseSupplierRouterService;
use App\Model\PssModel\OrderSupplier;
use App\Model\PssModel\Business;
use App\Service\VendorClient\Shopyongyou\ShopyongyouApiClient;
use App\Service\VendorClient\Shopshqingpu\ShopshqingpuApiClient;
use App\Service\VendorClient\Shophnsm\ShophnsmApiClient;
use Service\AppService\IdService;
use App\Service\TraitService\SupplierRouterOrderTrait;
use App\Model\CommodityModel\SupplierCommodity;

/***
 * 上海青浦wms上游对接
 * @author: hj
 */
class Shopshqingpu extends BaseSupplierRouterService {

    use SupplierRouterOrderTrait;

    /**
     * 订单申报
     * @param array $param
     * @return array
     */
    public function orderPay($param = []) {
        return $this->callSdkApi(ShopshqingpuApiClient::class, $param['apiBody'])->createOrder($param);
    }

    /**
     * 订单取消
     * @param array $param
     * @return array
     */
    public function orderCancel($param = []) {
        return Normal::returnCode(Normal::SUC, "处理完成");
    }

    /**
     * 订单售后
     * @param array $param
     * @return array
     */
    public function orderAfterSale($param = []) {
        return $this->callSdkApi(ShopshqingpuApiClient::class, $param['apiBody'])->cancelOrder($param);
    }

    /**
     * 获取物流信息
     * @param array $param
     */
    public function orderExpress($param = []) {
        return Normal::returnCode(Normal::SUC, "处理完成");
    }

    /**
     * 获取物流信息
     * @param array $param
     */
    public function queryOrderExpress($param = []) {
        return Normal::returnCode(Normal::SUC, "获取成功");
    }

    /**
     * 商品列表查询接口
     * @param array $param
     * @return array
     */
    public function queryGoodsList($param = []) {
        return Normal::returnCode(Normal::SUC, "获取成功");
    }
}